package com.hyzx.qbasic.admin.model.vo.req.admin;

/**
 * Created by 黄江华 on 2017/12/6
 */

import com.alibaba.fastjson.annotation.JSONField;
import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by 黄江华 on 2017/10/17
 */

public class ResetPassReq extends BaseRequest {

    @NotNull(message = "userId不能为空")
    @Min(value = 1, message = "userId必须大于0")
    private Integer userId;

    @NotEmpty(message = "用户名不能为空")
    @Length(max = 50, message = "用户名不能超过50个字符")
    private String userName;

    @JSONField(serialize = false) //密码明文不记录到日志里
    @NotEmpty(message = "密码不能为空")
    @Length(max = 50, message = "密码不能超过50个字符")
    private String password;

    @JSONField(serialize = false) //密码明文不记录到日志里
    @NotEmpty(message = "密码不能为空")
    @Length(max = 50, message = "密码不能超过50个字符")
    private String password2;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword2() {
        return password2;
    }

    public void setPassword2(String password2) {
        this.password2 = password2;
    }
}
